
<div class="row">
    <div class="span12">
        <div class="navbar">
            <div class="navbar-inner">
                <div class="container">
                    <ul class="nav">
                        <li><?=anchor(base_url(),'Home');?></li><!-- se deseja marcar usar class="active"-->
                             <!-- menu dinamico-->
                             <?php
                                $menu = $this->MenuModel->montarMenu()->result();
                                foreach ($menu as $categorias)
                                { ?> <li class="dropdown">
                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$categorias->descricao;?><b class="caret"></b></a>
                                            <ul class="dropdown-menu">
                                            <?php $materias = $this->MenuModel->itensMenu($categorias->codigo_categoria)->result();
                                                foreach ($materias as $itens)
                                                { ?> <li> <?=anchor(base_url(). "AssuntoController/buscaAssunto/". $itens->codigo_pagina, $itens->titulo_menu, 'title ='.$itens->titulo_menu);?></li><?php 
                                                } ?>
                                            	
                                            	<li class="divider">&nbsp;</li>
                                                <?=anchor(base_url()."CategoriaController/todasDaCategoria/". $categorias->descricao ," + ".$categorias->descricao);?>
                                             </ul>
                                     </li><?php	
                                }?>
                                       
                                    <li class="dropdown">
                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Escola<b class="caret"></b></a>
                                        
                                         <ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
                                             <?php
                                             for($i = 1; $i < 4; $i++){?>
                                                 
                                             <li class="dropdown-submenu">
                                                 <?=anchor(base_url()."EscolaController/escola/".$i,$i.'º SÉRIE');?>
                                             </li>
                                             <?php } ?>
                                         </ul>
                                        
                                    </li>
                                    <!-- menu biologia em destaque-->
                                    <li class="dropdown">
                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Biologia Em Destaque<b class="caret"></b></a>
                                        <ul class="dropdown-menu">
                                            <?php $menuBio = $this->MenuModel->montarMenuBiologia()->result();
                                                foreach ($menuBio as $itensMenuBio)
                                                { ?> <li><?=anchor(base_url()."CategoriaController/todasDaCategoria/".$itensMenuBio->descricao,$itensMenuBio->descricao);?></li>
                                                     <li class="divider">&nbsp;</li><?php
                                                }
                                            ?>
                                            
                                             
                                            
                                        </ul>
                                    </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>